package com.smartplatform.service.impl;

import com.smartplatform.mapper.SysHumitureMapper;
import com.smartplatform.pojo.SysHumiture;
import com.smartplatform.service.SysHumitureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;

/**
 * @Author 咕唧
 * @Date 2022/6/10 16:17
 * @Version 1.0
 */
@Service
@Transactional
public class SysHumitureServiceImpl implements SysHumitureService {

    private SysHumitureMapper sysHumitureMapper;

    @Autowired
    public void setSysHumitureMapper(SysHumitureMapper sysHumitureMapper) {
        this.sysHumitureMapper = sysHumitureMapper;
    }

    @Override
    public void multiAdd(ArrayList<SysHumiture> sysHumitures) {
        //校验数据
        if (sysHumitures == null || sysHumitures.size() == 0) {
            return;
        }
        sysHumitureMapper.multiAdd(sysHumitures);
    }
}
